package org.jamin.lending.controller;

import java.util.Map;

import org.jamin.lending.domain.form.BorrowPageForm;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class BorrowController {
	
	@RequestMapping(value = "project/list")
	private String list(BorrowPageForm borrowPageForm,ModelMap modelMap){
		String[] models = {"借款标","债权转让"};
		String[] status = {"全部","投标中","投标结束","还款中","还款完成","流标"};
		String[] cycles = {"全部","0-3个月","3-6个月","6-9个月","9-12个月","12个月以上"};
		String[] profits = {"全部","9%以下","9-12%","12-14%","14%以上"};
		modelMap.addAttribute("models",models);
		modelMap.addAttribute("status",status);
		modelMap.addAttribute("cycles",cycles);
		modelMap.addAttribute("profits",profits);
		modelMap.addAttribute("borrowForm",borrowPageForm);
		return "borrow.list";
	}

}
